import React from 'react';
// import logo from './logo.svg';
import './App.css';
import {BrowserRouter as Router, Route, Link} from 'react-router-dom';

import Home from './components/home/Home'
import Pcontent from './components/pcontent/Pcontent'
import Login from './components/login/Login'
import Tab from './components/tab/Tab'

function App() {
  return (
    <Router>
      <div className="App">
        {/* <h2>react请求数据实现无人点餐、无人收银系统，商品列表、商品详情</h2> */}
        {/* <ul>
          <li>
            <Link to="/">Home</Link>
          </li>
        </ul> */}
        <Route exact path="/" component={Home}/>
        <Route path="/pcontent/:id" component={Pcontent}/>
        <Route path="/login" component={Login} />
        <Route path="/tab" component={Tab}/>
        {/* <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <p>
            Edit <code>src/App.js</code> and save to reload.
          </p>
          <a
            className="App-link"
            href="https://reactjs.org"
            target="_blank"
            rel="noopener noreferrer"
          >
            Learn React
          </a>
        </header> */}
      </div>
    </Router>
  );
}

export default App;
